package test.java;

import java.io.IOException;
import java.net.ServerSocket;

public class Server {
    private ServerSocket serverSocket;
    public Server(){
        try {
            System.out.println("启动服务器");
            serverSocket=new ServerSocket(8088);
            System.out.println("服务器启动成功");
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
    public void start(){
        System.out.println("等待连接客户端");
       // Server server=serverSocket.accept();
        System.out.println("连接成功");


    }

    public static void main(String[] args) {
        Server server=new Server();
        server.start();
    }
}
